# -*- coding : utf-8-*-
import json
import queue
from collections import namedtuple
import requests
import time
import networkx as nx

if __name__ == '__main__':
    urlstr = 'https://api.map.baidu.com/routematrix/v2/driving?output=json' \
             '&origins=40.056878,116.30815;s1|40.063597,116.364973;s2' \
             '&destinations=40.056878,116.30815;e1|40.063597,116.364973;e2' \
             '&ak=39VsPwWnD61e6Ru57Ev8yZH4O1WV67jy'
    res = requests.get(urlstr)
    print (res.text)
